/**
 * 
 */
package com.shy.task.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * <p>Title:TaskEntity</p>
 * <p>Description:任务信息實体 </p>
 * <p>Company:shy </p> 
 * @author H2013788
 * @date 2019年09月21日
 */
@Entity
@Table(name = "sys_task")
public class TaskEntity implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)  
	@Column(name = "id")
	private Integer id;

    /** 任务ID */
    @Column(name = "TASK_ID")
    private String taskId;
    
    /** 执行表达式 */
    @Column(name = "CRON_EXPRESSION")
    private String cronExpression;
    
    /** 线程类 */
    @Column(name = "TASK_CLASS")
    private String taskClass;
    
    /** 任务名称 */
    @Column(name = "TASK_NAME")
    private String taskName;
    
    /** 指定站点 */
    @Column(name = "SITEID")
    private Integer siteId;
    
    /** 站点名称 */
    @Column(name = "SITE_NAME")
    private String siteName;
    
    /** 当前状态1正常  0冻结 */
    @Column(name = "STATUS")
    private Integer status;
    
    /** 运行参数，多个之间用&，如a=1&b=2 */
    @Column(name = "params")
    private String params;
    
    /** 运行节点，系统使用hutool管理定时任务，集群环境需要设置节点*/
    @Column(name = "SERVER_NODE")
    private String serverNode;
    
    @Column(name = "GOUP_NAME")
    private String goupName;
    
	/**
	 * spring bean
	 */
	@Column(name = "spring_id")
	private String springId;
	
	/**
	 * 任务调用的方法名
	 */
	@Column(name = "method_name")
	private String methodName;

    
    public String getTaskId() {
	    return taskId;
    }

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	
    public String getCronExpression() {
	    return cronExpression;
    }

	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}
	
    public String getTaskClass() {
	    return taskClass;
    }

	public void setTaskClass(String taskClass) {
		this.taskClass = taskClass;
	}
	
    public String getTaskName() {
	    return taskName;
    }

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getSiteId() {
		return siteId;
	}

	public void setSiteId(Integer siteId) {
		this.siteId = siteId;
	}

	public String getSiteName() {
		return siteName;
	}

	public void setSiteName(String siteName) {
		this.siteName = siteName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	public String getServerNode() {
		return serverNode;
	}

	public void setServerNode(String serverNode) {
		this.serverNode = serverNode;
	}

	public String getGoupName() {
		return goupName;
	}

	public void setGoupName(String goupName) {
		this.goupName = goupName;
	}

	public String getSpringId() {
		return springId;
	}

	public void setSpringId(String springId) {
		this.springId = springId;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}
	
}
